package com.llf.Blog.Mapper;

import com.llf.Blog.Pojo.Tag;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author llf
 * @since 2021-08-07
 */
@Repository
@Mapper
public interface TagMapper extends BaseMapper<Tag> {
    Tag getById(@Param("id") Long id);
    List<Tag> getAll();
    Boolean insertTag(Tag tag);
    Boolean update(Tag tag);
    Boolean deleteById(@Param("id") long id);
    Tag  getByName(@Param("name") String name);

}
